// 封装通用的接口调用方法
const request = (path, param) => {
    let url = 'https://www.ehomespace.com/api/public/v1/' + path
    return new Promise(function(resolve, reject) {
        mpvue.request({
            url: url,
            method: 'get',
            data: param,
            success: (res) => {
               resolve(res)
            }
        })
    })
}

export default request